package model;

import java.util.Vector;

public class block {
private int blockNumber,rowNumber,columnNumber;
private char row,column; 
private boolean satisfiesRules;
public block(String temp) throws NullPointerException{
	blockNumber =0;
	column = temp.charAt(0);
	row = temp.charAt(1);
	rowNumber = row-48;
	columnNumber = column-65+1;
	satisfiesRules = false;
};
public int returnBlockNumber(){
	return blockNumber;
}
public char returnRow() {
	return row;
}
public char returnColumn() {
	return column;
}
public void setCellValue(int value) {
	blockNumber = value;
}
public int returnColumnNumber(){
	return columnNumber;
}
public int returnRowNumber() {
	return rowNumber;
}
public boolean findCell(int tempRow,int tempColumn){
	if ((tempRow==rowNumber) && (tempColumn==columnNumber))
		return true;
	else
		return false;
}
public void setSatisfiedToTrue(){
	satisfiesRules = true;
}
public void setSatisfiedToFalse(){
	satisfiesRules = false;
}
public boolean returnValidity(){
	return satisfiesRules;
}
}
